
from datetime import date
from datetime import  time
from datetime import datetime
'''
date,time,detal
'''
d=date(2021,2,2)
print(d.day)
#当前时间
from datetime import  datetime
d=datetime.now()
#时间差类
from datetime import timedelta
tdelta= timedelta(hours=2)

print('当前时间减去时间差的值：{}'.format(d-tdelta))

